﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class BenchmarkHelpers
   | CodeJam </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class BenchmarkHelpers
   | CodeJam ">
    <meta name="generator" content="docfx 2.23.1.0">
    
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="../../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../../styles/docfx.css">
    <link rel="stylesheet" href="../../styles/main.css">
    <meta property="docfx:navrel" content="../../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    <meta property="docfx:rel" content="../../">
    
  </head>
  <body data-spy="scroll" data-target="#affix">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../../index.html">
                <img id="logo" class="svg" src="../../images/CodeJam.Main.Icon.png" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div class="container body-content">
        
        <div id="search-results">
          <div class="search-list"></div>
          <div class="sr-items"></div>
          <ul id="pagination"></ul>
        </div>
      </div>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers">
  
  
  <h1 id="BenchmarkDotNet_Helpers_BenchmarkHelpers" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers" class="text-break">Class BenchmarkHelpers
  </h1>
  <div class="markdown level0 summary"><p>Helper methods for benchmark infrastructure.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">BenchmarkHelpers</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="BenchmarkDotNet.Helpers.html">BenchmarkDotNet.Helpers</a></h6>
  <h6><strong>Assembly</strong>: CodeJam.PerfTests.dll</h6>
  <h5 id="BenchmarkDotNet_Helpers_BenchmarkHelpers_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class BenchmarkHelpers</code></pre>
  </div>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=BenchmarkDotNet_Helpers_BenchmarkHelpers_AsReadOnly_BenchmarkDotNet_Configs_IConfig_.md&amp;value=---%0Auid%3A%20BenchmarkDotNet.Helpers.BenchmarkHelpers.AsReadOnly(BenchmarkDotNet.Configs.IConfig)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L0_PortToBenchmerkDotNet]/Helpers/BenchmarkHelpers.cs/#L54">View Source</a>
  </span>
  <a id="BenchmarkDotNet_Helpers_BenchmarkHelpers_AsReadOnly_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.AsReadOnly*"></a>
  <h4 id="BenchmarkDotNet_Helpers_BenchmarkHelpers_AsReadOnly_BenchmarkDotNet_Configs_IConfig_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.AsReadOnly(BenchmarkDotNet.Configs.IConfig)">AsReadOnly(IConfig)</h4>
  <div class="markdown level1 summary"><p>Creates read-only wrapper for the config.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IConfig AsReadOnly(this IConfig config)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">BenchmarkDotNet.Configs.IConfig</span></td>
        <td><span class="parametername">config</span></td>
        <td><p>The config to wrap.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">BenchmarkDotNet.Configs.IConfig</span></td>
        <td><p>Read-only wrapper for the config.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=BenchmarkDotNet_Helpers_BenchmarkHelpers_DeterminesBehavior_BenchmarkDotNet_Characteristics_Characteristic_System_Boolean_.md&amp;value=---%0Auid%3A%20BenchmarkDotNet.Helpers.BenchmarkHelpers.DeterminesBehavior(BenchmarkDotNet.Characteristics.Characteristic%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L0_PortToBenchmerkDotNet]/Helpers/BenchmarkHelpers.cs/#L96">View Source</a>
  </span>
  <a id="BenchmarkDotNet_Helpers_BenchmarkHelpers_DeterminesBehavior_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.DeterminesBehavior*"></a>
  <h4 id="BenchmarkDotNet_Helpers_BenchmarkHelpers_DeterminesBehavior_BenchmarkDotNet_Characteristics_Characteristic_System_Boolean_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.DeterminesBehavior(BenchmarkDotNet.Characteristics.Characteristic,System.Boolean)">DeterminesBehavior(Characteristic, Boolean)</h4>
  <div class="markdown level1 summary"><p>Determines whether the characteristic has influence on job execution.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool DeterminesBehavior(this Characteristic characteristic, bool includeIgnoreOnApply = false)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">BenchmarkDotNet.Characteristics.Characteristic</span></td>
        <td><span class="parametername">characteristic</span></td>
        <td><p>The characteristic.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">includeIgnoreOnApply</span></td>
        <td><p>Include ignorable.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if the characteristic has influence on job execution.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=BenchmarkDotNet_Helpers_BenchmarkHelpers_GetBenchmarkTypes_System_Reflection_Assembly_.md&amp;value=---%0Auid%3A%20BenchmarkDotNet.Helpers.BenchmarkHelpers.GetBenchmarkTypes(System.Reflection.Assembly)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L0_PortToBenchmerkDotNet]/Helpers/BenchmarkHelpers.cs/#L37">View Source</a>
  </span>
  <a id="BenchmarkDotNet_Helpers_BenchmarkHelpers_GetBenchmarkTypes_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.GetBenchmarkTypes*"></a>
  <h4 id="BenchmarkDotNet_Helpers_BenchmarkHelpers_GetBenchmarkTypes_System_Reflection_Assembly_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.GetBenchmarkTypes(System.Reflection.Assembly)">GetBenchmarkTypes(Assembly)</h4>
  <div class="markdown level1 summary"><p>Returns benchmark types from the assembly.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Type[] GetBenchmarkTypes(Assembly assembly)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Reflection.Assembly</span></td>
        <td><span class="parametername">assembly</span></td>
        <td><p>The assembly to get benchmarks from.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Type</span>[]</td>
        <td><p>Benchmark types from the assembly</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=BenchmarkDotNet_Helpers_BenchmarkHelpers_GetExecutionOrderBenchmarks_BenchmarkDotNet_Reports_Summary_.md&amp;value=---%0Auid%3A%20BenchmarkDotNet.Helpers.BenchmarkHelpers.GetExecutionOrderBenchmarks(BenchmarkDotNet.Reports.Summary)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L0_PortToBenchmerkDotNet]/Helpers/BenchmarkHelpers.cs/#L60">View Source</a>
  </span>
  <a id="BenchmarkDotNet_Helpers_BenchmarkHelpers_GetExecutionOrderBenchmarks_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.GetExecutionOrderBenchmarks*"></a>
  <h4 id="BenchmarkDotNet_Helpers_BenchmarkHelpers_GetExecutionOrderBenchmarks_BenchmarkDotNet_Reports_Summary_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.GetExecutionOrderBenchmarks(BenchmarkDotNet.Reports.Summary)">GetExecutionOrderBenchmarks(Summary)</h4>
  <div class="markdown level1 summary"><p>Returns benchmarks for the summary sorted by execution order.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IEnumerable&lt;Benchmark&gt; GetExecutionOrderBenchmarks(this Summary summary)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">BenchmarkDotNet.Reports.Summary</span></td>
        <td><span class="parametername">summary</span></td>
        <td><p>Summary for the run.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<span class="xref">BenchmarkDotNet.Running.Benchmark</span>&gt;</td>
        <td><p>Benchmarks for the summary.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=BenchmarkDotNet_Helpers_BenchmarkHelpers_GetSummaryOrderBenchmarks_BenchmarkDotNet_Reports_Summary_.md&amp;value=---%0Auid%3A%20BenchmarkDotNet.Helpers.BenchmarkHelpers.GetSummaryOrderBenchmarks(BenchmarkDotNet.Reports.Summary)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L0_PortToBenchmerkDotNet]/Helpers/BenchmarkHelpers.cs/#L69">View Source</a>
  </span>
  <a id="BenchmarkDotNet_Helpers_BenchmarkHelpers_GetSummaryOrderBenchmarks_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.GetSummaryOrderBenchmarks*"></a>
  <h4 id="BenchmarkDotNet_Helpers_BenchmarkHelpers_GetSummaryOrderBenchmarks_BenchmarkDotNet_Reports_Summary_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.GetSummaryOrderBenchmarks(BenchmarkDotNet.Reports.Summary)">GetSummaryOrderBenchmarks(Summary)</h4>
  <div class="markdown level1 summary"><p>Returns benchmarks for the summary sorted by display order.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IEnumerable&lt;Benchmark&gt; GetSummaryOrderBenchmarks(this Summary summary)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">BenchmarkDotNet.Reports.Summary</span></td>
        <td><span class="parametername">summary</span></td>
        <td><p>Summary for the run.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<span class="xref">BenchmarkDotNet.Running.Benchmark</span>&gt;</td>
        <td><p>Benchmarks for the summary.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=BenchmarkDotNet_Helpers_BenchmarkHelpers_SetAffinity_System_Diagnostics_Process_System_IntPtr_BenchmarkDotNet_Loggers_ILogger_.md&amp;value=---%0Auid%3A%20BenchmarkDotNet.Helpers.BenchmarkHelpers.SetAffinity(System.Diagnostics.Process%2CSystem.IntPtr%2CBenchmarkDotNet.Loggers.ILogger)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L0_PortToBenchmerkDotNet]/Helpers/BenchmarkHelpers.cs/#L164">View Source</a>
  </span>
  <a id="BenchmarkDotNet_Helpers_BenchmarkHelpers_SetAffinity_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.SetAffinity*"></a>
  <h4 id="BenchmarkDotNet_Helpers_BenchmarkHelpers_SetAffinity_System_Diagnostics_Process_System_IntPtr_BenchmarkDotNet_Loggers_ILogger_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.SetAffinity(System.Diagnostics.Process,System.IntPtr,BenchmarkDotNet.Loggers.ILogger)">SetAffinity(Process, IntPtr, ILogger)</h4>
  <div class="markdown level1 summary"><p>Changes the cpu affinity of the process.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool SetAffinity(this Process process, IntPtr processorAffinity, ILogger logger)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Diagnostics.Process</span></td>
        <td><span class="parametername">process</span></td>
        <td><p>The target process.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">processorAffinity</span></td>
        <td><p>The processor affinity.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">BenchmarkDotNet.Loggers.ILogger</span></td>
        <td><span class="parametername">logger</span></td>
        <td><p>The logger.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=BenchmarkDotNet_Helpers_BenchmarkHelpers_SetPriority_System_Diagnostics_Process_System_Diagnostics_ProcessPriorityClass_BenchmarkDotNet_Loggers_ILogger_.md&amp;value=---%0Auid%3A%20BenchmarkDotNet.Helpers.BenchmarkHelpers.SetPriority(System.Diagnostics.Process%2CSystem.Diagnostics.ProcessPriorityClass%2CBenchmarkDotNet.Loggers.ILogger)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L0_PortToBenchmerkDotNet]/Helpers/BenchmarkHelpers.cs/#L137">View Source</a>
  </span>
  <a id="BenchmarkDotNet_Helpers_BenchmarkHelpers_SetPriority_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.SetPriority*"></a>
  <h4 id="BenchmarkDotNet_Helpers_BenchmarkHelpers_SetPriority_System_Diagnostics_Process_System_Diagnostics_ProcessPriorityClass_BenchmarkDotNet_Loggers_ILogger_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.SetPriority(System.Diagnostics.Process,System.Diagnostics.ProcessPriorityClass,BenchmarkDotNet.Loggers.ILogger)">SetPriority(Process, ProcessPriorityClass, ILogger)</h4>
  <div class="markdown level1 summary"><p>Changes the priority of the process.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool SetPriority(this Process process, ProcessPriorityClass priority, ILogger logger)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Diagnostics.Process</span></td>
        <td><span class="parametername">process</span></td>
        <td><p>The target process.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Diagnostics.ProcessPriorityClass</span></td>
        <td><span class="parametername">priority</span></td>
        <td><p>The priority.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">BenchmarkDotNet.Loggers.ILogger</span></td>
        <td><span class="parametername">logger</span></td>
        <td><p>The logger.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=BenchmarkDotNet_Helpers_BenchmarkHelpers_SetPriority_System_Threading_Thread_System_Threading_ThreadPriority_BenchmarkDotNet_Loggers_ILogger_.md&amp;value=---%0Auid%3A%20BenchmarkDotNet.Helpers.BenchmarkHelpers.SetPriority(System.Threading.Thread%2CSystem.Threading.ThreadPriority%2CBenchmarkDotNet.Loggers.ILogger)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L0_PortToBenchmerkDotNet]/Helpers/BenchmarkHelpers.cs/#L110">View Source</a>
  </span>
  <a id="BenchmarkDotNet_Helpers_BenchmarkHelpers_SetPriority_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.SetPriority*"></a>
  <h4 id="BenchmarkDotNet_Helpers_BenchmarkHelpers_SetPriority_System_Threading_Thread_System_Threading_ThreadPriority_BenchmarkDotNet_Loggers_ILogger_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.SetPriority(System.Threading.Thread,System.Threading.ThreadPriority,BenchmarkDotNet.Loggers.ILogger)">SetPriority(Thread, ThreadPriority, ILogger)</h4>
  <div class="markdown level1 summary"><p>Changes the priority of the thread.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool SetPriority(this Thread thread, ThreadPriority priority, ILogger logger)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Threading.Thread</span></td>
        <td><span class="parametername">thread</span></td>
        <td><p>The target thread.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Threading.ThreadPriority</span></td>
        <td><span class="parametername">priority</span></td>
        <td><p>The priority.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">BenchmarkDotNet.Loggers.ILogger</span></td>
        <td><span class="parametername">logger</span></td>
        <td><p>The logger.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=BenchmarkDotNet_Helpers_BenchmarkHelpers_SetupHighestPriorityScope_System_Nullable_System_IntPtr__BenchmarkDotNet_Loggers_ILogger_.md&amp;value=---%0Auid%3A%20BenchmarkDotNet.Helpers.BenchmarkHelpers.SetupHighestPriorityScope(System.Nullable%7BSystem.IntPtr%7D%2CBenchmarkDotNet.Loggers.ILogger)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L0_PortToBenchmerkDotNet]/Helpers/BenchmarkHelpers.cs/#L191">View Source</a>
  </span>
  <a id="BenchmarkDotNet_Helpers_BenchmarkHelpers_SetupHighestPriorityScope_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.SetupHighestPriorityScope*"></a>
  <h4 id="BenchmarkDotNet_Helpers_BenchmarkHelpers_SetupHighestPriorityScope_System_Nullable_System_IntPtr__BenchmarkDotNet_Loggers_ILogger_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.SetupHighestPriorityScope(System.Nullable{System.IntPtr},BenchmarkDotNet.Loggers.ILogger)">SetupHighestPriorityScope(Nullable&lt;IntPtr&gt;, ILogger)</h4>
  <div class="markdown level1 summary"><p>Sets highest possible priority and Changes the cpu affinity of the process.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IDisposable SetupHighestPriorityScope(IntPtr? processorAffinity, ILogger logger)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.IntPtr</span>&gt;</td>
        <td><span class="parametername">processorAffinity</span></td>
        <td><p>The processor affinity.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">BenchmarkDotNet.Loggers.ILogger</span></td>
        <td><span class="parametername">logger</span></td>
        <td><p>The logger.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IDisposable</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=BenchmarkDotNet_Helpers_BenchmarkHelpers_TotalNanoseconds_System_TimeSpan_.md&amp;value=---%0Auid%3A%20BenchmarkDotNet.Helpers.BenchmarkHelpers.TotalNanoseconds(System.TimeSpan)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L0_PortToBenchmerkDotNet]/Helpers/BenchmarkHelpers.cs/#L102">View Source</a>
  </span>
  <a id="BenchmarkDotNet_Helpers_BenchmarkHelpers_TotalNanoseconds_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.TotalNanoseconds*"></a>
  <h4 id="BenchmarkDotNet_Helpers_BenchmarkHelpers_TotalNanoseconds_System_TimeSpan_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.TotalNanoseconds(System.TimeSpan)">TotalNanoseconds(TimeSpan)</h4>
  <div class="markdown level1 summary"><p>Gets the value of the current TimeSpan structure expressed in nanoseconds.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double TotalNanoseconds(this TimeSpan timeSpan)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.TimeSpan</span></td>
        <td><span class="parametername">timeSpan</span></td>
        <td><p>The timespan.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>The total number of nanoseconds represented by this instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=BenchmarkDotNet_Helpers_BenchmarkHelpers_TryGetBaseline_BenchmarkDotNet_Reports_Summary_BenchmarkDotNet_Running_Benchmark_.md&amp;value=---%0Auid%3A%20BenchmarkDotNet.Helpers.BenchmarkHelpers.TryGetBaseline(BenchmarkDotNet.Reports.Summary%2CBenchmarkDotNet.Running.Benchmark)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L0_PortToBenchmerkDotNet]/Helpers/BenchmarkHelpers.cs/#L79">View Source</a>
  </span>
  <a id="BenchmarkDotNet_Helpers_BenchmarkHelpers_TryGetBaseline_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.TryGetBaseline*"></a>
  <h4 id="BenchmarkDotNet_Helpers_BenchmarkHelpers_TryGetBaseline_BenchmarkDotNet_Reports_Summary_BenchmarkDotNet_Running_Benchmark_" data-uid="BenchmarkDotNet.Helpers.BenchmarkHelpers.TryGetBaseline(BenchmarkDotNet.Reports.Summary,BenchmarkDotNet.Running.Benchmark)">TryGetBaseline(Summary, Benchmark)</h4>
  <div class="markdown level1 summary"><p>Returns the baseline for the benchmark.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Benchmark TryGetBaseline(this Summary summary, Benchmark benchmark)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">BenchmarkDotNet.Reports.Summary</span></td>
        <td><span class="parametername">summary</span></td>
        <td><p>Summary for the run.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">BenchmarkDotNet.Running.Benchmark</span></td>
        <td><span class="parametername">benchmark</span></td>
        <td><p>The benchmark.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">BenchmarkDotNet.Running.Benchmark</span></td>
        <td><p>Baseline for the benchmark</p>
</td>
      </tr>
    </tbody>
  </table>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=BenchmarkDotNet_Helpers_BenchmarkHelpers.md&amp;value=---%0Auid%3A%20BenchmarkDotNet.Helpers.BenchmarkHelpers%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L0_PortToBenchmerkDotNet]/Helpers/BenchmarkHelpers.cs/#L29" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            Copyright � 2015-2017
            
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../../styles/docfx.js"></script>
    <script type="text/javascript" src="../../styles/main.js"></script>
  </body>
</html>
